package com.liveinstars.common.sort;

public class DefaultBasePageReq implements BasePageReq {

    private Integer page;
    private Integer count;
    private String orderfield;
    private String ordertype;

    public DefaultBasePageReq() {
    }

    public DefaultBasePageReq(String orderfield, String ordertype) {
        this.orderfield = orderfield;
        this.ordertype = ordertype;
    }

    public DefaultBasePageReq(Integer page, Integer count, String orderfield, String ordertype) {
        this.page = page;
        this.count = count;
        this.orderfield = orderfield;
        this.ordertype = ordertype;
    }

    @Override
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @Override
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String getOrderfield() {
        return orderfield;
    }

    public void setOrderfield(String orderfield) {
        this.orderfield = orderfield;
    }

    @Override
    public String getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
    }
}